package com.approval.approvalapp.util.base;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import com.approval.approvalapp.R;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

//业务数据查看
public class YwSjCkActivity extends BaseActivity {

    @Bind(R.id.back_iv)
    ImageView backIv;
    @Bind(R.id.titleTv1)
    TextView titleTv1;
    @Bind(R.id.blsx_tv)
    TextView blsxTv;
    @Bind(R.id.sqr_tv)
    TextView sqrTv;
    @Bind(R.id.lxdh_tv)
    TextView lxdhTv;
    @Bind(R.id.zjlx_tv)
    TextView zjlxTv;
    @Bind(R.id.zjhm_tv)
    TextView zjhmTv;

    @Override
    public int getLayoutId() {
        return R.layout.activity_yw_sj_ck;
    }

    @Override
    public void initView() {
        String blsx = getIntent().getStringExtra("blsx");
        String sqr = getIntent().getStringExtra("sqr");
        String lxdh = getIntent().getStringExtra("lxdh");
        String zjlx = getIntent().getStringExtra("zjlx");
        String zjhm = getIntent().getStringExtra("zjhm");

        blsxTv.setText(blsx);
        sqrTv.setText(sqr);
        lxdhTv.setText(lxdh);
        zjlxTv.setText(zjlx);
        zjhmTv.setText(zjhm);
    }

    @Override
    public void initData() {


    }

    public static void goInto(Context context, String blsx, String sqr,
                              String lxdh, String zjlx, String zjhm) {
        Intent intent = new Intent();
        intent.setClass(context, YwSjCkActivity.class);
        intent.putExtra("blsx", blsx);
        intent.putExtra("sqr", sqr);
        intent.putExtra("lxdh", lxdh);
        intent.putExtra("zjlx", zjlx);
        intent.putExtra("zjhm", zjhm);
        context.startActivity(intent);
    }



    @OnClick(R.id.back_iv)
    public void onViewClicked() {
        finish();
    }
}
